<?php

/**
 * @package   auto_occasion
 * @subpackage 
 * @author    CMS
 * @copyright 2011
 * @license    All rights reserved
 **/

class temoignageVendeurSrv{

    /**
    * LIste de tous les vendeurs 
    */
    public function getAll(){
        // instanciation de la factory
        $maFactory = jDao::get("commun~ao_vendeur");
        $conditions = jDao::createConditions();

        $records = $maFactory->findBy($conditions, 0, 500);

        return $records->fetchAll();
    }


  /**
     * Fonction permettant d'avoir la liste des profils
     * @return object
     */
    public static function getById ($_iId) {
       $oFac = jDao::get("commun~ao_vendeur");
     
       return $oFac->get($_iId);
    }



}
